using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;
using Water.Model; 

namespace Water.Data.Repositories.Mappings {
    
    
    public class ValveFaultRepairMap : ClassMap<ValveFaultRepair> {
        
        public ValveFaultRepairMap() {
			Table("Tbt_ValveFaultRepair");
			LazyLoad();
			Id(x => x.MRNO).GeneratedBy.Assigned().Column("MRNO");
			Map(x => x.EpcNo).Column("EpcNO").Not.Nullable();
            References<Valve>(x => x.Ve, "EpcNO").PropertyRef(e => e.EpcNO).ReadOnly();
			Map(x => x.MaintainDt).Column("MaintainDt").Not.Nullable();
			Map(x => x.Telphone).Column("Telphone");
			Map(x => x.UseAddress).Column("UseAddress");
			Map(x => x.Reason).Column("Reason");
			Map(x => x.Result).Column("Result");
			Map(x => x.ProcessEmp).Column("ProcessEmp").Not.Nullable();
			Map(x => x.InfoSource).Column("InfoSource").Not.Nullable();
			Map(x => x.CreateDt).Column("CreateDt").ReadOnly();
        }
    }
}
